]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Patch for bug https://bugzilla.gnome.org/show_bug.cgi?id=673630
authorRūdolfs Mazurs <rudolfsm@src.gnome.org>
Sat, 2 Jun 2012 12:45:55 +0000 (15:45 +0300)
committerRūdolfs Mazurs <rudolfsm@src.gnome.org>
Sat, 2 Jun 2012 12:45:55 +0000 (15:45 +0300)
js/ui/main.js

index 8d7c48e19dba779865524facaa82d06183e91eb6..81232ffacf68fd2fe36609a55de317a2b4a193fe 100644 (file)
@@ -105,6 +105,7 @@ function createInitialSetupSession() {
 
 function _initRecorder() {
     let recorderSettings = new Gio.Settings({ schema: 'org.gnome.shell.recorder' });
+    let desktopLockdownSettings = new Gio.Settings({ schema: 'org.gnome.desktop.lockdown' });
     let bindingSettings = new Gio.Settings({ schema: 'org.gnome.shell.keybindings' });
 
     global.display.add_keybinding('toggle-recording',
@@ -117,7 +118,7 @@ function _initRecorder() {
         if (recorder.is_recording()) {
             recorder.close();
             Meta.enable_unredirect_for_screen(global.screen);
-        } else {
+        } else if (!desktopLockdownSettings.get_boolean('disable-save-to-disk')) {
             // read the parameters from GSettings always in case they have changed
             recorder.set_framerate(recorderSettings.get_int('framerate'));
             /* Translators: this is a filename used for screencast recording */